import scrapers
import retrieval

def get_proleague_matches(date):
    table = retrieval.get_match_tables(date)

    scrape = scrapers.ProleagueMatchesScraper(table).scrape()

    if scrape:
        scrape['date_played'] = date
        
    return scrape

def get_map_info(map_id):
    map_table = retrieval.get_map_table(map_id)
    return scrapers.MapScraper(map_table).scrape()

def get_player_info(player_id):
    player_table = retrieval.get_player_table(player_id)
    return scrapers.PlayerScraper(player_table).scrape()


